package com.example.repository;

import com.example.entity.Role;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface RoleRepository extends BaseRepository<Role> {

    @Query(value = "from Role r where r.name=:name")
    Role findByRoleName(@Param("name") String name);

}
